From: Timm Bäder Date: Fri, 18 Oct 2019 05:43:21 +0000 (+0200) Subject: filechooserwidget: Focus the searchbar when searching X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1~1^2~321^2^2~690 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=aaae141687e133bba9df7fad5a73de7d2ad9e69c;p=gtk4.git filechooserwidget: Focus the searchbar when searching This code path is taken if the search is already active, so focus the search entry. --- diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index c022c98a7a..aa5e456fc0 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -1437,6 +1437,8 @@ widget_key_press_cb (GtkEventControllerKey *controller, priv->starting_search = TRUE; if (gtk_event_controller_key_forward (controller, priv->search_entry)) { + gtk_widget_grab_focus (priv->search_entry); + if (priv->operation_mode != OPERATION_MODE_SEARCH && priv->starting_search) operation_mode_set (impl, OPERATION_MODE_SEARCH);